<%@ include file="includes/top.jsp"%>

<table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2">
	<tr>
		<td bgcolor="#FFFF88">
			<s:a action="/shop/viewProduct.do">
				<s:param name="productId" value="${product.productId}"/>
				<b><font color="BLACK" size="2">&lt;&lt; <s:property value="${product.name}" /></font></b>
			</s:a>
		</td>
	</tr>
</table>

<table align="center" bgcolor="#008800" cellspacing="2" cellpadding="3"	border="0" width="60%">
	<tr bgcolor="#FFFF88">
		<td bgcolor="#FFFFFF"><s:property value="${product.description}"/></td>
	</tr>
	
	<tr bgcolor="#FFFF88">
		<td width="100%" bgcolor="#cccccc"><b><s:property value="${item.itemId}" /></b></td>
	</tr>
	
	<tr bgcolor="#FFFF88">
		<td>
			<b>
			<font size="4">
				<s:property value="${item.attribute1}" />
				<s:property value="${item.attribute2}" />
				<s:property value="${item.attribute3}" />
				<s:property value="${item.attribute4}" />
				<s:property value="${item.attribute5}" />
				<s:property value="${product.name}" />
			</font>
			</b>
		</td>
	</tr>
	
	<tr bgcolor="#FFFF88">
		<td><font size="3"><i><s:property value="${product.name}" /></i></font></td>
	</tr>
	
	<tr bgcolor="#FFFF88">
		<td>
			<s:if test="${item.quantity <= 0}">
				<font color="RED" size="2"><i>Back ordered.</i></font>
			</s:if>
			
			<s:if test="${item.quantity > 0}">
				<font size="2"><fmt:formatNumber value="${item.quantity}" /> in stock.</font>
			</s:if>
		</td>
	</tr>
	
	<tr bgcolor="#FFFF88">
		<td><fmt:formatNumber value="${item.listPrice}" pattern="$#,##0.00" /></td>
	</tr>

	<tr bgcolor="#FFFF88">
		<td>
			<s:a action="/shop/addItemToCart.do">
				<s:param name="workingItemId" value="${item.itemId}"/>
				<img border="0" src="../images/button_add_to_cart.gif" />
			</s:a>
		</td>
	</tr>
</table>

<%@ include file="includes/bottom.jsp"%>
